package com.guoxin.designpattern.chapter1;

/**
 * 线程安全
 * 
 * @author guoxin
 * @date 2019年8月26日
 */
public class SingletonObject6 {

	private SingletonObject6() {
		// empty
	}

	private static class InstanceHolder {
		private static final SingletonObject6 INSTANCE = new SingletonObject6();
	}

	public static SingletonObject6 getInstance() {
		return InstanceHolder.INSTANCE;
	}
	
	
}
